
def assert_status_code(response, status_code):
    assert response.status_code == status_code, f'Expected status code {status_code}, got {response.status_code}'


def assert_result(response, result):
    assert response.json() == result